// 用户相关API
import http from "@/tools/http";

// 创建验证码
export const createCode = (params) => http.get("/user/createCode", { params });
// 登录
export const login = (params) => http.post("/user/login", params);
// 用户列表
export const list = (params) => http.get("/user/list", { params });
// 用户信息
export const info = (params) => http.get("/user/info", { params });
// 删除用户
export const remove = (params) => http.post("/user/remove", params);
// 行为日志列表
export const activeList = (params) =>
  http.get("/user/getActiveList", { params });
// 黑名单列表
export const blackList = (params) => http.get("/user/blackList", { params });

// 拉入黑名单

// 移除黑名单

// 签出用户

// 禁止认证
export const forbidAuth = (params) => http.post("/user/forbidAuth", params);

// 允许认证
export const allowAuth = (params) => http.post("/user/allowAuth", params);





export default {
  login,
  list,
  remove,
  info,
  activeList,
  blackList,
};
